package com.kedacom.ctsp.authority.entity;


import com.kedacom.ctsp.web.entity.CrudEntity;
import com.kedacom.ctsp.web.entity.StatefulBean;
import com.kedacom.ctsp.web.entity.TreeSortSupportBean;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author sunchenjie
 * @date 2017/11/12 0012
 */
public interface Resource extends CrudEntity<String>, TreeSortSupportBean<Resource, String>, StatefulBean<Integer>, ExtendedBean {

    /**
     * 资源名称
     */
    String NAME = "name";
    /**
     * 唯一标识（在系统中使用）
     */
    String SIGN = "sign";
    /**
     * 类型 10 菜单 20 操作 30 权限等
     */
    String TYPE = "type";
    /**
     * 备注
     */
    String DESCRIPTION = "description";
    /**
     * 数据
     */
    String DATA = "data";
    /**
     * 对应的url
     */
    String URL = "url";
    /**
     * client Sign
     */
    String CLIENT_SIGN = "clientSign";

    String getName();

    void setName(String name);

    String getSign();

    void setSign(String sign);

    String getType();

    void setType(String type);

    String getDescription();

    void setDescription(String description);

    String getData();

    void setData(String data);

    String getUrl();

    void setUrl(String url);

    String getField();

    void setField(String field);

    String getDataAccess();

    void setDataAccess(String dataAccess);

    String getDataScope();

    void setDataScope(String dataScope);

    String getClientSign();

    void setClientSign(String sign);

    RequestMethod getMethod();

    void setMethod(RequestMethod requestMethod);
}
